
package de.fhhof.brst.dao;

import java.util.List;
import de.fhhof.brst.data.Booking;
import de.fhhof.brst.data.Event;
import de.fhhof.brst.data.Ticket;
import de.fhhof.brst.data.User;
public interface EventDAO {
  /**
   *  Admin stuff - return = status
   */
  int createEvent(de.fhhof.brst.data.Event event) ;

  int deleteEvent(de.fhhof.brst.data.Event event) ;

  int editEvent(de.fhhof.brst.data.Event event) ;

  /**
   *  User stuff
   */
  int bookEvent(de.fhhof.brst.data.Booking booking) ;

  List<de.fhhof.brst.data.Event> getAllEvents() ;

  List<de.fhhof.brst.data.Booking> getBookings(long userID) ;

  de.fhhof.brst.data.Event getEvent(long eventID) ;

  void deleteBooking(de.fhhof.brst.data.Booking deleteBooking) ;

  List<de.fhhof.brst.data.Booking> getAllBookings(long l) ;

  List<de.fhhof.brst.data.Ticket> getTickets(long userID) ;

  void saveTicket(de.fhhof.brst.data.Ticket ticket) ;

  List<de.fhhof.brst.data.Ticket> getAllTickets(long id) ;

  void deleteTicket(de.fhhof.brst.data.Ticket ticket) ;

}
